package com.software.software.model.server;

import java.util.HashMap;
import java.util.Map;

public class searchMap {
    public Map<String,String> get_map(String userId,String userName,String loginName,String userEmail) {
        Map<String,String> m = new HashMap<String, String>();
        if (userId != null) m.put("userId",userId);
        if (userName != null)m.put("userName",userName);
        if (loginName != null)m.put("loginName",loginName);
        if (userEmail != null)m.put("userEmail",userEmail);
        return m;
    }
    public Map<String,String> makeMap(String...args) {
        Map<String,String> m = new HashMap<String, String>();
        for (int i = 0; i < args.length; i += 2 ) {
            m.put(args[i], args[i + 1]);
        }
        return m;
    }
}
